using FluentValidation;
	
namespace VehicleModule.Api.Model
{
    /// <summary>
    ///车辆实时数据表 验证类
    /// </summary>
    public class RealtimedataUpdateRequestValidator : AbstractValidator<RealtimedataUpdateRequest>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public RealtimedataUpdateRequestValidator()
        {
            RuleFor(s => s.OilInRealTime).NotEmpty().Length(0, 100);
            RuleFor(s => s.OilReturnRealTime).NotEmpty().Length(0, 100);
            RuleFor(s => s.OilTemperature).NotEmpty().Length(0, 100);
            RuleFor(s => s.Emission).NotEmpty().Length(0, 100);
            RuleFor(s => s.Infrared).NotEmpty().Length(0, 100);
            RuleFor(s => s.Density).NotEmpty().Length(0, 100);
            RuleFor(s => s.CO2).NotEmpty().Length(0, 100);
            RuleFor(s => s.Description).NotEmpty().Length(0, 100);
            RuleFor(s => s.Images).NotEmpty().Length(0, 100);
            RuleFor(s => s.Fuelconsumption).NotEmpty().Length(0, 100);
            RuleFor(s => s.Speed).NotEmpty().Length(0, 100);
        }
    }
}
